package com.example.smartgreenhouse.mapper;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface EnvironmentMetricsMapper {
    @MapKey("time")
    List<Map<String, Object>> select24HMetricData(
        @Param("tableName") String tableName,
        @Param("fieldName") String fieldName
    );
    @MapKey("date")
    List<Map<String, Object>> select7DayMetricData(
            @Param("tableName") String tableName,
            @Param("fieldName") String fieldName
    );
}
